package tech.bmatch.redpack.model;

import java.util.List;

/**
 * 构建红包对象
 */
public class RedPack extends BaseModel{
    private RedPackType type; //红包类型
    private CouponType couponType; //优惠类型
    private int amount; //优惠金额
    private int validity; //红包有效期
    private List<RedPackCondition> conditions;//优惠条件

    public RedPackType getType() {
        return type;
    }

    public void setType(RedPackType type) {
        this.type = type;
    }

    public CouponType getCouponType() {
        return couponType;
    }

    public void setCouponType(CouponType couponType) {
        this.couponType = couponType;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public int getValidity() {
        return validity;
    }

    public void setValidity(int validity) {
        this.validity = validity;
    }

    public List<RedPackCondition> getConditions() {
        return conditions;
    }

    public void setConditions(List<RedPackCondition> conditions) {
        this.conditions = conditions;
    }
}
